<!--{template /module/admin/view/head}-->
<div id="left_layout">
	<div id="main_content" class="container-fluid">
		<!--{template /module/admin/view/head_nav}-->
		<div class="row-fluid">
			<div class="span8">
			<div class="well widget">
				<div class="widget-header">
					<h3 class="title">{lang state.salerank.view.header}</h3>
				</div>
				<div class="widget-content">
					<form class="form-search" id="frm_search" name="frmSearch" action="{$ADMIN_SCRIPT}/stat/sale" method="post">
					<div class="action-wrapper">
						<div class="pull-right" {$dispatches[operations][search]}>
				            	{lang state.salerank.view.search.time}
				            <input type="text" name="txtBeginDate" maxlength="16" class="input-medium" value="{$_var[gp_txtBeginDate]}" />
				            	{lang state.salerank.view.search.time.0}
				            <input type="text" name="txtEndDate" maxlength="16" class="input-medium" value="{$_var[gp_txtEndDate]}" />
							<button type="submit" class="btn">{lang state.salerank.view.search.submit}</button>
						</div>
					</div>
					</form>
					<hr/>
					<table class="table table-hover">
						<thead>
							<tr>
								<th width="40">{lang state.salerank.view.th.rank}</th>
								<th width="70">{lang state.salerank.view.th.image}</th>
					            <th>{lang state.salerank.view.th.title}/{lang state.salerank.view.th.cname}</th>
					            <th width="80">{lang state.salerank.view.th.ourprice}</th>
					            <th width="80">{lang state.salerank.view.th.salednum}</th>
							</tr>
						</thead>
						<tbody>
							<!--{loop $products $_loop $product}-->
							<tr>
							<td class="f16">
				        		{echo $start + $_loop + 1;}、
				            </td>
				            <td>
					            <!--{if is_array($product[FILE01])}-->
					            <img src="{$product[FILE01][0]}" width="68" height="68" style="border:1px solid #ccc;" />
					            <!--{else}-->
					            <img src="static/images/blank.gif" width="68" height="68" />
					            <!--{/if}-->
				            </td>
				            <td class="left">
					            <p class="text-success">{$product[TITLE]}({$product[NO]})</p>
					            <p class="text-info">{$product[CNAME]}</p>
				            </td>
				            <td>
				            	{$product[OURPRICE]}{lang state.salerank.view.uint.yuan}
				            </td>
				            <td>
				            	{$product[SALEDNUM]}{lang state.salerank.view.uint.jian}
				            </td>
				            </tr>
				            <!--{/loop}-->
				            <!--{if count($products) == 0}-->
					        <tr>
					            <td colspan="5">
					                *{lang admin.operation.empty}
					            </td>
					        </tr>
					        <!--{/if}-->
						</tbody>
					</table>
					
					<hr/>
					{$pager}
				</div>
			</div>
			</div>
		</div>
	</div>
</div>
<script>
$(function(){
	$('.fancy').uniform();
	$(".pull-right .input-medium").datepicker({format:'yyyy-mm-dd'});
});
</script>
<!--{template /module/admin/view/foot}-->